const { description } = require('../../package')

module.exports = {
  title: 'HaoQi.PersonalBlog',
  description: '个人文档',
  theme: 'reco',  
  themeConfig: {
    authorAvatar: '/hero.jpg',
    type: 'blog',
    // logo: '/hero.jpg',
    repo: '',
    editLinks: false,
    docsDir: '',
    editLinkText: '',
    lastUpdated: false,
    // 备案
    record: 'ICP 备案文案',
    recordLink: 'ICP 备案指向链接',
    cyberSecurityRecord: '公安部备案文案',
    cyberSecurityLink: '公安部备案指向链接',
    // 项目开始时间，只填写年份
    startYear: '2018',
    blogConfig: {
      category: {
        location: 2,
        text: '大纲'
      },
      tag: {
        location: 3,
        text: '标签'
      },
    },
    nav: [
      {
        text: '首页',
        link: '/',
        icon: 'reco-home'
      },
      {
        text: '简介',
        link: '/介绍/',
        icon: 'reco-suggestion'
      },
      {
        text: '前端基础',
        icon: "reco-category",
        items: [
         { text: 'HTML', link: '/web基础/Html/html' },
          { text: 'CSS', link: '/web基础/Css/css.md' },
          { text: 'JavaScript', link: '/web基础/Js/js' },
          { text:'JavaScript高级', link:'/web基础/js gj/jsgj'},
          { text: 'Jquery', link: '/web基础/Jquery/jquery' },
          { text: 'Ajax', link: '/web基础/Ajax/ajax' },
          { text: 'ES6', link: '/web基础/Es6/es6' }
        ]
      },
      {
        text: '前端框架',
        items:[
          {text:'vue',link:'/前端框架/Vue/vue.md'},
          {text:'vue-router',link:'/前端框架/Vue/vue-router.md'},
          {text:'vuex',link:'/前端框架/Vue/vuex.md'},
          {text:'vue组件传值',link:'/前端框架/Vue/vue组件传值.md'},
          {text:'vue练习题',link:'/前端框架/Vue/vue练习题.md'},
          {text:'react',link:'/前端框架/React/react.md'},
          {text:'redux安装',link:'/前端框架/React/redux安装.md'},
          {text:'react练习题',link:'/前端框架/React/react练习题.md'},
        ]
      },
      {
        text: '微信小程序',
        items:[
          {text:'微信小程序',link:'/微信小程序/小程序基础/微信小程序基础.md'},
        ]
      },
      {
        text: '后端',
        items:[
          {text:'node.js基础',link:'/后端/node.md'},
          {text:'express框架',link:'/后端/express框架.md'}
        ]
      },
      {
        text: 'github',
        link: '/github/',
        items: [
          { text: 'github生成sshkey',
           link: '/github/git/git生成sshkey/git生成' },
          { text: 'github上传项目步骤', 
          link: '/github/git/上传github步骤/上传git' }
        ]
      }
    ],
    sidebar: {
      '/web基础/':[
        {
          title: 'Css',
          collapsable: false,
          children: [
            'Css/css'
          ]
        },
        {
          title: 'Html',
          collapsable: false,
          children: [
            'Html/html'
          ]
        },
        {
          title: 'Js',
          collapsable: false,
          children: [
            'Js/js'
          ]
        },
        {
          title: 'Js gj',
          collapsable: false,
          children: [
            'Js gj/jsgj'
          ]
        },
        {
          title: 'ES6',
          collapsable: false,
          children: [
            'ES6/es6'
          ]
        },
        {
          title: 'Jquery',
          collapsable: false,
          children: [
            'Jquery/jquery'
          ]
        },
        {
          title: 'Ajax',
          collapsable: false,
          children: [
            'Ajax/ajax'
          ]
        },
      ],
      '/前端框架/': [
        {
          title: 'Vue',
          collapsable: false,
          children: [
            'Vue/vue','Vue/vue-router','Vue/vuex','Vue/vue练习题','Vue/vue组件传值'
          ]
        },
        {
          title: 'React',
          collapsable: false,
          children: [
            'React/react','React/react练习题','React/redux安装'
          ]
        }
      ],
      '/微信小程序/':[
        {
          title: '微信基础',
          collapsable: false,
          children: [
           '微信基础/微信小程序基础'
          ]
        }
      ],
      '/后端/':[
        {
          title: 'node基础',
          collapsable: false,
          children: [
           '/node'
          ]
        },
        {
          title: 'express框架',
          collapsable: false,
          children: [
           '/express框架'
          ]
        }
      ],
      '/github/':[
        {
          title: 'git生成',
          collapsable: false,
          children: [
           'git生成sshkey/git生成'
          ]
        },
        {
           title: '上传git',
          collapsable: false,
          children: [
           '上传github步骤/上传git'
          ]
        }
      ],
    }
  },

  /**
   * Apply plugins，ref：https://v1.vuepress.vuejs.org/zh/plugin/
   */
  plugins: [
    '@vuepress/plugin-back-to-top',
    '@vuepress/plugin-medium-zoom',
  ]
}
